﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using SWS;

public class CostInfomation : MonoBehaviour {

    /// <summary>
    /// 此段路径的总距离
    /// </summary>
    public float costLength;

    /// <summary>
    /// 到起点的距离
    /// </summary>
    public float fromCostLength;

    /// <summary>
    /// 到终点的距离
    /// </summary>
    public float toCostLength;
    
    /// <summary>
    /// 父路径
    /// </summary>
    public RoadNode parentNode;

    /// <summary>
    /// 父路径转弯路径
    /// </summary>
    public PathManager parentPathCurve;

    public void SaveCostInfo(float F,float T,RoadNode node,PathManager parentPathCurve)
    {
        fromCostLength = F;
        toCostLength = T;
        costLength = F + T;
        parentNode = node;
        this.parentPathCurve = parentPathCurve;
    }

}
